<%--
  Created by IntelliJ IDEA.
  User: PromiseT
  Date: 2022/5/26
  Time: 14:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.css">
    <script src="/static/bootstrap/js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
    <script src="/static/bootstrap/js/jquery-3.3.1.js"></script>
</head>
<body>

<form action="/StudentServlet/addStu" method="post" style="width: 500px;margin-left: 500px;">
    <div class="form-group">
        <div style="text-align: center"><h3>添加学生</h3></div>
        <label for="exampleInputText">学号</label>
        <input name="stuID" value="${stu.stuID}" type="text" class="form-control" id="exampleInputText" placeholder="请输入学号">
    </div>
    <div class="form-group">
        <label for="exampleInputText1">姓名</label>
        <input  name="name" type="text" class="form-control" id="exampleInputText1" placeholder="请输入姓名">
    </div>
    <div class="form-group">
        <label for="exampleInputText2">年龄</label>
        <input  name="age"   type="text" class="form-control" id="exampleInputText2" placeholder="请输入年龄">
    </div>
    <div class="form-group">
        <label for="exampleInputText3">年级</label>
        <input  name="grade" type="text" class="form-control" id="exampleInputText3" placeholder="请输入年级">
    </div>
    <div class="radio">
        <label>
            <input type="radio" name="male" value="男" ${stu.male=='男'?'checked':''}>
            男
        </label>
    </div>
    <div class="radio">
        <label>
            <input type="radio" name="male" value="女" ${stu.male=='女'?'checked':''}>
            女
        </label>
    </div>
    <br />
    <select  name="state" class="form-control">
        <option value="正常">正常</option>
        <option value="请假">请假</option>
        <option value="旷课">旷课</option>
    </select>
    <br />
    <div style="text-align: center;">
        <button style="width: 70%;background-color: rgba(178,219,161,0.2);" type="submit" class="btn btn-default">提交</button>
    </div>
</form>
</body>





<%--<body>--%>
<%--<div class="dialog" style="border: seagreen 1px solid; width: 250px;margin-left: 550px;margin-top: 100px;">--%>
<%--    <form action="/StudentServlet/addStu" method="post">--%>
<%--        <div class="input-group">--%>
<%--            <span class="input-group-addon" id="sizing-addon4">学号</span>--%>
<%--            <input type="text" name="stuID" value="${stu.stuID}" class="form-control" placeholder="请输入学号" aria-describedby="sizing-addon1">--%>
<%--        </div>--%>

<%--        <div class="input-group">--%>
<%--            <span class="input-group-addon" id="sizing-addon1">姓名</span>--%>
<%--            <input type="text" name="name" value="${stu.stuID}" class="form-control" placeholder="请输入姓名" aria-describedby="sizing-addon1">--%>
<%--        </div>--%>

<%--        <div class="input-group">--%>
<%--            <span class="input-group-addon" id="sizing-addon2">年龄</span>--%>
<%--            <input type="text" name="age" value="${stu.age}" class="form-control" placeholder="请输入年龄" aria-describedby="sizing-addon2">--%>
<%--        </div>--%>

<%--        <div class="input-group">--%>
<%--            <span class="input-group-addon" id="sizing-addon3">年级</span>--%>
<%--            <input type="text" name="grade" value="${stu.grade}" class="form-control" placeholder="请输入年级" aria-describedby="sizing-addon3">--%>
<%--        </div>--%>
<%--        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--%>
<%--        性别:<input type="radio" name="male" value="男" ${stu.male=='男'?'checked':''}/>男--%>
<%--        <input type="radio" name="male" value="女" ${stu.male=='女'?'checked':''}/>女<br><br>--%>
<%--        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--%>
<%--        状态:<select name="state" value="${stu.state}">--%>
<%--        <option value="正常">正常</option>--%>
<%--        <option value="请假">请假</option>--%>
<%--        <option value="旷课">旷课</option>--%>
<%--    </select>--%>
<%--        <br><br>--%>
<%--        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--%>
<%--        <button type="submit" class="btn btn-default">添加</button>--%>
<%--    </form>--%>
<%--</div>--%>
<%--</body>--%>
</html>
